<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>商品添加</title>
<!-- Bootstrap -->
<link
	href="${pageContext.request.contextPath }/static/css/bootstrap.min.css"
	rel="stylesheet">
</head>
<body>
	<br />
	<div class="row">
		<div class="col-md-1"></div>
		<div class="col-md-4">
			<form id='addProductForm' action='${pageContext.request.contextPath }/product/add2.do' method='post' enctype='multipart/form-data' >
				<div class="form-group">
					<label for="email">商品名</label> 
					<input type="text"
						name='product.name' class="form-control" id="email"
						placeholder="商品名称">
				</div>
				<div class="form-group"><label for="email">价格</label>
					<div class='input-group'>
						<input type="number" class="form-control" name='product.price'
							id="exampleInputAmount" placeholder="价格">
						<div class="input-group-addon">￥</div>
					</div>
				</div>
				<div class="form-group">
					<label for="desc">商品详情</label> <input type="text"
						name='product.description' class="form-control" id="desc"
						placeholder="商品详情">
				</div>
				<div class="form-group">
					<label for="filefor">选择商品图片</label> <input name='filePic'
						type="file" id="filefor">
				</div>
				<input type="submit" class="btn btn-primary" value='添                加'></input>
			</form>

		</div>
		<div class="col-md-8"></div>
	</div>



	
	
	
	
	
	
	
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script
		src="${pageContext.request.contextPath }/static/js/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script
		src="${pageContext.request.contextPath }/static/js/bootstrap.min.js"></script>
		
	<script>
		
	
	</script>
</body>
</html>